package rs.dalao.syc.index.dao.persist.repository;/*
 *   @author:Casin
 *   @date:2023/8/4
 *   @code:
 */

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import rs.dalao.syc.index.dao.search.EncContentSearchRepository;
import rs.dalao.syc.index.pojo.vo.EncContentSearchVO;

import java.util.List;

@SpringBootTest
public class IEncContentSearchRepository {
    @Autowired
    private EncContentSearchRepository encContentSearchRepository;

    //测试自定义搜索
    @Test
    void xx(){
        String keyword="是什么病";
        List<EncContentSearchVO> encContentSearchVOS = encContentSearchRepository.customQuery(keyword);
        for (EncContentSearchVO encContentSearchVO : encContentSearchVOS) {
            System.out.println(encContentSearchVO);
        }
    }

/*    @Test
    void xxx(){
        String keyword="面部";
        List<EncContentSearchVO> encContentSearchVOS = encContentSearchRepository.queryByTitle(keyword);
        System.out.println(encContentSearchVOS);
        for (EncContentSearchVO encContentSearchVO : encContentSearchVOS) {
            System.out.println(encContentSearchVO);
        }
    }*/
    @Test
    void x(){
        encContentSearchRepository.deleteAll();
    }





}
